﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="ApplyView.aspx.cs" Inherits="Gift_ApplyView" %>

<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style>
        strong { color: #666666; font-family: Verdana,Arial,Helvetica,sans-serif; }
        .TableItem { background-color: #FBFBFB; text-align: center; padding: 3px; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" width="100%">
        <tr>
            <td id="tdPass" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnPass" OnClick="PassSupply">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/Icon/Action/enable.gif")%>" alt="通过" /></span><span>通过</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg1" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdNotPass" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnNotPass" OnClick="NotPassSupply">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/审核未通过.png")%>" alt="不通过" /></span><span>不通过</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg2" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdConfirm" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnConfirm" OnClick="ComfirmSupply">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/已领取.png")%>" alt="确认申领" /></span><span>确认申领</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg3" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdCancel" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="btnCancel" OnClick="CancelSupply" OnClientClick="return confirm('确定取消申请吗？');">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/Icon/Action/delete.gif")%>" alt="取消" /></span><span>取消</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg4" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("~/Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdArrival" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnArrival" OnClick="Arrival_Click" CausesValidation="false"
                        OnClientClick="return confirm('确认到货？');">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/已到货.png")%>" alt="到货" /></span><span>到货</span></asp:LinkButton>
                </div>
            </td>
            <td id="fg5" runat="server" class="Fg" visible="false">
                <img src="<%=ResolveUrl("../Images/FgLine.gif") %>" alt="" />
            </td>
            <td id="tdNotice" runat="server" class="ToolMenu" width="60" visible="false">
                <div class="Normal" oldclass="Normal" onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)">
                    <asp:LinkButton runat="server" ID="lbtnNotice" OnClick="Notice_Click" CausesValidation="false">
                    <span>
                        <img src="<%=ResolveUrl("~/Images/Icon/Action/enable.gif")%>" alt="通知" /></span><span>通知</span></asp:LinkButton>
                </div>
            </td>
            <td width="100%">
            </td>
        </tr>
    </table>
    <%--    <asp:Button ID="btnCancel" runat="server" OnClick="CancelSupply" Text="取消" OnClientClick="return confim('确定要取消订单么？');" />--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="详细信息" Selected="true" />
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <table id="tableDeal" class="Table" style="width: 100%" cellpadding="4" cellspacing="0"
        runat="server">
        <tr>
            <td width="15%" class="TableItem">
                <strong>申领科室</strong>
            </td>
            <td width="35%">
                <asp:Literal ID="ltDepart" runat="server"></asp:Literal>
            </td>
            <td width="15%" class="TableItem">
                <strong>申领人</strong>
            </td>
            <td width="35%">
                <asp:Literal ID="ltApplicant" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="TableItem">
                <strong>申领原因</strong>
            </td>
            <td>
                <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
            </td>
            <td class="TableItem">
                <strong>申领时间</strong>
            </td>
            <td>
                <asp:Literal ID="ltTime" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="TableItem">
                <strong>礼品总价</strong>
            </td>
            <td>
                <asp:Literal ID="ltTotal" runat="server"></asp:Literal>
            </td>
            <td class="TableItem">
                <strong>审核人</strong>
            </td>
            <td>
                <asp:DropDownList runat="server" ID="ddlAuditor" CssClass="TextBoxWrite">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="TableItem">
                <strong>到货时间</strong>
            </td>
            <td>
                <asp:Literal ID="ltArrivalTime" runat="server"></asp:Literal>
            </td>
            <td class="TableItem">
                <strong>拟领取时间</strong>
            </td>
            <td>
               <asp:Literal ID="ltNilingqu" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="TableItem">
                <strong>备注</strong>
            </td>
            <td colspan="3">
                <asp:Literal ID="ltRemark" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <td class="TableItem">
                <strong>审核意见</strong>
            </td>
            <td colspan="3">
                <textarea id="tbShyj" runat="server" class="TextArea01" name="status" rows="3" style="width: 300px;"></textarea>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" Display="Dynamic"
                    ErrorMessage="请控制在200个字以内" ControlToValidate="tbShyj" ValidationExpression=".{1,200}"
                    SetFocusOnError="true"></asp:RegularExpressionValidator>
                <span class="Alter">*</span>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Display="Static"
                    ControlToValidate="tbShyj" ErrorMessage="请填写审核意见" SetFocusOnError="true"></asp:RequiredFieldValidator>
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" border="0" class="" width="100%" runat="server"
        id="tableConfirm" visible="false">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <div id="MainContent2" class="ScrollDiv">
                    <table id="tblDetail" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>申请科室：</strong></a>
                                    <asp:Literal ID="ltDepart2" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>申&nbsp;&nbsp;请&nbsp;&nbsp;人：</strong></a>
                                    <asp:Literal ID="ltApplicant2" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2">
                                    <a class="blue-01"><strong>申请标题：</strong></a>
                                    <asp:Literal ID="ltTitle2" runat="server"></asp:Literal>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>申请时间：</strong></a>
                                    <asp:Literal ID="ltTime2" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>审核时间：</strong></a>
                                    <asp:Literal ID="ltShsj" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>礼品总价：</strong></a>
                                    <asp:Literal ID="ltTotal2" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</strong></a>
                                    <asp:Literal ID="ltRemark2" runat="server"></asp:Literal>
                            </td>
                        </tr>
                        <tr>
                            <td class="DetailTitle">
                                <div class="fixWidth2" style="margin-left: 1px;">
                                    <a class="blue-01"><strong>审核意见：</strong></a>
                                    <asp:Literal ID="tbShyj2" runat="server"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
        <wsc:ListHeader ID="lhGiftName" runat="server" Title="&nbsp;礼品名称" Align="center" />
        <wsc:ListHeader ID="lhGiftPrice" runat="server" Title="&nbsp;礼品价格" Width="80" Align="center" />
        <wsc:ListHeader ID="lhGiftCount" runat="server" Title="&nbsp;礼品数量" Width="80" Align="center" />
        <wsc:ListHeader ID="lhGiftTotal" runat="server" Title="&nbsp;礼品总价" Width="80" Align="center" />
        <wsc:ListHeader ID="lhRemark" runat="server" Title="&nbsp;备注" Width="100" Align="center" />
        <%--<wsc:ListHeader ID="lhOperate" runat="server" Title="&nbsp;操作" Width="80" Align="center" />--%>
    </table>
    <table id="Table1" width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
        <%--OnItemDataBound="rptProduct_ItemDataBound"--%>
        <asp:Repeater ID="rptProduct" runat="server" OnItemDataBound="rptProduct_ItemDataBound"
            OnItemCommand="rptProduct_ItemCommand">
            <ItemTemplate>
                <tr id="TableRow_<%# Container.ItemIndex%>" style="cursor: hand" class="Normal" oldclass="Normal"
                    onmouseover="OverChangeClass(this);" onmouseout="ReturnClass(this)" onclick="ClickChangeClass(this);">
                    <td>
                        <span style="text-align: left;">
                            <%# DataBinder.Eval(Container.DataItem, "GiftName")%></span>
                    </td>
                    <td width="80" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "GiftPrice")%>
                    </td>
                    <td width="80" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "GiftCount")%>
                    </td>
                    <td width="80" align="center">
                        <%# DataBinder.Eval(Container.DataItem, "GiftTotal", "{0:N}")%>
                    </td>
                    <td width="100" align="left">
                        <span title="<%# DataBinder.Eval(Container.DataItem, "Remark")%>">
                            <%# WebCommon.Cut(DataBinder.Eval(Container.DataItem, "Remark"),15)%></span>
                    </td>
                    <%-- <td width="80" align="center">
                        <asp:Button ID="btnDelete" CssClass="Button01" runat="server" Text="删除" Visible="false"
                            CommandName="Delete" CommandArgument='<%#Eval("ID") %>' />
                    </td>--%>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
    Div2
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="Div3ContentPlaceHolder" runat="Server">
    Div3
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="Div4ContentPlaceHolder" runat="Server">
    Div4
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderID="Div5ContentPlaceHolder" runat="Server">
    Div5
</asp:Content>
